package com.qd.common.panda.domain.entity.space;

import com.cdqidi.util.page.BaseQuery;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 承租信息
 *
 * @author sjk
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
public class OwnParkSpaceTenantDTO extends BaseQuery {

    /**
     * 主键
     */
    private String id;
    /**
     * 租赁开始时间
     */
    private String startDate;
    /**
     * 租赁结束时间
     */
    private String endDate;
    /**
     * 租赁天数
     */
    private Long days;
    /**
     * 日单价
     */
    @JsonIgnore
    private BigDecimal dayPrice;
    /**
     * 日单价显示
     */
    private String dayPriceDisplay;
    /**
     * 交易总价
     */
    @JsonIgnore
    private BigDecimal totalCost;
    /**
     * 交易总价显示
     */
    private String totalCostDisplay;
    /**
     * 租赁人车牌号
     */
    private String tenantNumber;
    /**
     * 订单状态:0拍下未付款1付款成功2付款失败7申请退款8退款成功9退款失败
     */
    private Integer tenantOrderState;
    /**
     * 订单状态显示
     */
    private String tenantOrderStateDisplay;
    /**
     * 下单时间
     */
    private LocalDateTime orderTime;
    /**
     * 车位号
     */
    private String spaceNumber;
    /**
     * 熊猫泊车车位号
     */
    private String sysSpaceNumber;
    /**
     * 停车场ID
     */
    private String parkId;
    /**
     * 停车场ID显示
     */
    private String parkIdDisplay;

    @Override
    public void freeData() {
        this.id = null;
        this.startDate = null;
        this.endDate = null;
        this.days = null;
        this.dayPrice = null;
        this.dayPriceDisplay = null;
        this.totalCost = null;
        this.totalCostDisplay = null;
        this.tenantOrderState = null;
        this.tenantOrderStateDisplay = null;
        this.orderTime = null;
        this.tenantNumber = null;
        this.spaceNumber = null;
        this.sysSpaceNumber = null;
        this.parkId = null;
        this.parkIdDisplay = null;
        super.freeData();
    }
}
